﻿namespace QLKHCN.Models.Entities
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    [Table("CapBac")]
    public partial class CapBac
    {
        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
        public CapBac()
        {
            NhanViens = new HashSet<NhanVien>();
        }

        
        public int ID { get; set; }

        [StringLength(50)]
        [DisplayName("Cấp bậc")]
        [Required(ErrorMessage ="Bạn chưa nhập Cấp bậc")]
        public string TenCapBac { get; set; }

        [StringLength(3)]
        [DisplayName("Viết tắt")]
        public string VietTat { get; set; }

        [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
        public virtual ICollection<NhanVien> NhanViens { get; set; }
    }
}
